<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div id="bpmConfigWizard" class="wizard box tabbedBox  no-border">
	<div class=" header">
		<ul class="steps">
			<li class="current"><a href="#wizModelSetting">1、流程图设计</a></li>
			<li><a href="#wizNodeSetting">2、节点设置</a></li>

		</ul>
	</div>

	<div style="padding:0" class="content tabbed">
		<div id="wizModelSetting">
			<iframe src="workflow/service/editor?id=${modelId }"
				style="width:99%;height:470px"> </iframe>

		</div>
		<div id="wizNodeSetting"></div>

	</div>
	<isperp:wizButtonList buttonListId="bpmConfigWizardBtns">
	</isperp:wizButtonList>

</div>
<script type="text/javascript">
	$(document).ready(function() {

		var wizCreate = isperp.wizard({
			wizardId : "bpmConfigWizard"
		});

	});

	var bpmConfigWizard_Event0 = function(index, obj) {

	};

	var bpmConfigWizard_Event1 = function(index, obj) {
		$("#wizNodeSetting").empty().load("bpm/processSetting/config?id=${processSettingId}");
	};

	var bpmConfigWizard_Event2 = function(index, obj) {

		//保存并发布流程
		isperp.submitForm({
			formId : "processSettingForm",
			success : function() {
				alert("保存成功！");
				isperp.reloadParentControl();
				isperp.closeDialog();
			}
		});

		return false;
	};
</script>